home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic 4 Database How-To
/
Visual Basic 4 Database - How-to (The Waite Group)(1995).iso
/
publish.fr_
/
publish.fr
Wrap
Text File
|
1995-03-30
|
3KB
|
101 lines
VERSION 4.00
Begin VB.Form frmPublishers
Caption = "Print Publishers' Names"
ClientHeight = 1530
ClientLeft = 2625
ClientTop = 2595
ClientWidth = 3690
Height = 1935
Left = 2565
LinkTopic = "Form1"
ScaleHeight = 1530
ScaleWidth = 3690
Top = 2250
Width = 3810
Begin VB.CommandButton cmdQuit
Caption = "Quit"
Height = 495
Left = 1920
TabIndex = 3
Top = 840
Width = 1455
End
Begin VB.CommandButton cmdReport
Caption = "Report by Name"
Height = 495
Index = 2
Left = 1920
TabIndex = 2
Top = 240
Width = 1455
End
Begin VB.CommandButton cmdReport
Caption = "Report by City"
Height = 495
Index = 1
Left = 360
TabIndex = 1
Top = 840
Width = 1455
End
Begin VB.CommandButton cmdReport
Caption = "Report by Zip"
Height = 495
Index = 0
Left = 360
TabIndex = 0
Top = 240
Width = 1455
End
Begin Crystal.CrystalReport CrystalReport1
Left = 0
Top = 0
_extentx = 741
_extenty = 741
_stockprops = 0
reportfilename = "d:\winword\writing\database\crystal\publish.rpt"
destination = 0
windowleft = 100
windowtop = 100
windowwidth = 490
windowheight = 300
windowtitle = ""
windowborderstyle= 2
windowcontrolbox= -1 'True
windowmaxbutton = -1 'True
windowminbutton = -1 'True
copiestoprinter = 1
printfilename = ""
printfiletype = 0
selectionformula= ""
groupselectionformula= ""
connect = ""
username = ""
End
End
Attribute VB_Name = "frmPublishers"
Attribute VB_Creatable = False
Attribute VB_Exposed = False
Option Explicit
Private Sub cmdQuit_Click()
End
End Sub
Private Sub cmdReport_Click(Index As Integer)
'Set up the Report control
Select Case Index
Case 0 'Print by Zip
CrystalReport1.SortFields(0) = "+{Publishers.Zip}"
CrystalReport1.WindowTitle = "Publishers by Zip Code"
Case 1 'Print by City
CrystalReport1.SortFields(0) = "+{Publishers.City}"
CrystalReport1.WindowTitle = "Publishers by City"
Case 2 'Print by Name
CrystalReport1.SortFields(0) = "+{Publishers.Name}"
CrystalReport1.WindowTitle = "Publishers by Company Name"
End Select
CrystalReport1.Action = 1
End Sub